Skip to content

Throw for invalid directions rather than silently returning nothing - #489

Merged
lkdvos merged 1 commit into
mainfrom
ksh/ind_errors
Nov 6, 2026
Merged

lkdvos merged 1 commit into
mainfrom
ksh/ind_errors

Conversation

@kshyatt

@kshyatt kshyatt commented Nov 6, 2026

Copy link
Copy Markdown
Member

Not sure if there was a reason this was setup like this. A fix here will help Enzyme a lot inferring some stuff for caches :). It also seems better in general to vocally scream about an invalid direction.

@kshyatt
kshyatt requested review from leburgel and lkdvos November 6, 2026 11:45

@lkdvos lkdvos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mostly just an oversight on my part I think, there's absolutely no reason for this to be type unstable and will probably help inference times without AD as well

@lkdvos
lkdvos merged commit b641400 into main Nov 6, 2026
31 of 32 checks passed
@lkdvos
lkdvos deleted the ksh/ind_errors branch November 6, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants